//
//  MyAccountTableViewCell.m
//  FaceRecognition
//
//  Created by syun on 17/2/10.
//  Copyright © 2017年 Sylar. All rights reserved.
//

#import "MyAccountTableViewCell.h"

@implementation MyAccountTableViewCell

@synthesize nameLabel,headImage,dateLabel;

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self) {
        self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
        
        headImage = [[UIImageView alloc]initWithFrame:CGRectMake(15, 9, 40, 40)];
        
        [self.contentView addSubview:headImage];
        
        nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(headImage.frame)+60, 20, 100, 18)];
        nameLabel.textAlignment = NSTextAlignmentLeft;
        [nameLabel setFont:[UIFont systemFontOfSize:18]];
        [nameLabel setTextColor:colorFromHex(@"#3b3b3b")];
        [self.contentView addSubview:nameLabel];
        
        
        dateLabel = [[UILabel alloc]initWithFrame:CGRectMake(SCREENWIDTH - 200, 22, 185, 14)];
        [dateLabel setFont:[UIFont systemFontOfSize:14]];
        dateLabel.textAlignment = NSTextAlignmentRight;
        [dateLabel setTextColor:colorFromHex(@"#979797")];
        [self.contentView addSubview:dateLabel];

    }
    
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
